package com.ktjy.springsecuritydemo;

import org.junit.jupiter.api.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

public class Context {
    @Test
    public void contextLoads() {
        PasswordEncoder pe=new BCryptPasswordEncoder();
        String encode = pe.encode("123");
        System.out.println(encode);
        System.out.println("======================");

        boolean matches=pe.matches("123",encode);
        System.out.println(matches);
    }
}
